package com.arvin.faceDetect.db

import android.graphics.Bitmap
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import java.util.Date

@Entity(tableName = "recognition_records")
@TypeConverters(Converters::class)
data class RecognitionRecord(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    val name: String,
    val recognitionTime: Long,
    val similarity: Float,
    val faceBitmap: Bitmap? = null
) {
    fun getDate(): Date = Date(recognitionTime)
} 